package com.zunipe.minix;

import com.zunipe.until.Util;
import net.minecraft.client.render.LightmapTextureManager;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.ModifyVariable;

@Mixin(LightmapTextureManager.class)
public class LightmapTextureManagerMixin
{
    @ModifyVariable(method = "update", at = @At("STORE"), ordinal = 3)
    private float injected(float x)
    {
        if (Util.openNightVision)
            return 1f;
        return x;
    }
}
